<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Delete multiple items</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memcached.deletebykey.html">Memcached::deleteByKey</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memcached.deletemultibykey.html">Memcached::deleteMultiByKey</a></div>
 <div class="up"><a href="class.memcached.html">Memcached</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="memcached.deletemulti" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Memcached::deleteMulti</h1>
  <p class="verinfo">(PECL memcached &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">Memcached::deleteMulti</span> &mdash; <span class="dc-title">Delete multiple items</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-memcached.deletemulti-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>Memcached::deleteMulti</strong></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$keys</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$time</code><span class="initializer"> = 0</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>Memcached::deleteMulti()</strong></span> deletes the array of
   <em><code class="parameter">keys</code></em> from the server. The <em><code class="parameter">time</code></em>
   parameter is the amount of time in seconds (or Unix time until which) the
   client wishes the server to refuse <em>add</em> and
   <em>replace</em> commands for these keys. For this amount of time,
   the item is put into a delete queue, which means that it won&#039;t be possible to
   retrieve it by the <em>get</em> command, but
   <em>add</em> and <em>replace</em> command with these keys
   will also fail (the <em>set</em> command will succeed, however).
   After the time passes, the item is finally deleted from server memory. The
   parameter <em><code class="parameter">time</code></em> defaults to 0 (which means that the
   item will be deleted immediately and further storage commands with these keys
   will succeed).
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-memcached.deletemulti-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">keys</code></em></dt>

     <dd>

      <p class="para">
       The keys to be deleted.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">time</code></em></dt>

     <dd>

      <p class="para">
       The amount of time the server will wait to delete the items.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-memcached.deletemulti-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
   The <span class="methodname"><a href="memcached.getresultcode.html" class="methodname">Memcached::getResultCode()</a></span> will return
   <strong><code>Memcached::RES_NOTFOUND</code></strong> if the key does not exist.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-memcached.deletemulti-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="memcached.delete.html" class="methodname" rel="rdfs-seeAlso">Memcached::delete()</a> - 删除一个元素</span></li>
    <li class="member"><span class="methodname"><a href="memcached.deletebykey.html" class="methodname" rel="rdfs-seeAlso">Memcached::deleteByKey()</a> - 从指定的服务器删除一个元素</span></li>
    <li class="member"><span class="methodname"><a href="memcached.deletemultibykey.html" class="methodname" rel="rdfs-seeAlso">Memcached::deleteMultiByKey()</a> - Delete multiple items from a specific server</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memcached.deletebykey.html">Memcached::deleteByKey</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memcached.deletemultibykey.html">Memcached::deleteMultiByKey</a></div>
 <div class="up"><a href="class.memcached.html">Memcached</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
